Beschrijving
Geeft de totale ruimte in bytes op een station of netwerk-share.
Syntaxis
object.TotalSize
Het object is altijd een Drive-object.
Notities
De volgende code illustreert het gebruik van de eigenschap TotalSize:
Sub ShowSpaceInfo(drvpath)
Dim fs, d, s
Set fs = CreateObject("Scripting.FileSystemObject")
Set d = fs.GetDrive(fs.GetDriveName(fs.GetAbsolutePathName(drvpath)))
s = "Drive " & d.DriveLetter & ":"
s = s & vbCrLf
s = s & "Totale omvang: " & FormatNumber(d.TotalSize/1024, 0) & " Kbytes"
s = s & vbCrLf
s = s & "Beschikbaar: " & FormatNumber(d.AvailableSpace/1024, 0) & " Kbytes"
MsgBox s
End Sub